package org.chromium.tool.bean;

public class BaseBean<T> {
    // 2000
    private int code;
    // 200
    private int Code;

    private boolean status;

    //用于盟主申请的时候状态判断
    private String appstatus;
    private String msg;
    private String errMsg;

    private String token;
    private T data;
    private T Data;
//    private HashMap<String,GameTime> date_res;
    private int count;
    private int count_data;
    private String type;

    public String getAppstatus() {
        return appstatus;
    }

    public void setAppstatus(String appstatus) {
        this.appstatus = appstatus;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        this.Data = Data;
    }

    public T getdata() {
        return data;
    }

    public void setdata(T data) {
        this.data = data;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getCount_data() {
        return count_data;
    }

    public void setCount_data(int count_data) {
        this.count_data = count_data;
    }

    public int getNewCode(){
        if(Code != 0){
            return Code;
        } else if(code != 0){
            return  code;
        }
        return 0;
    }

    public T getNewData(){
        if(Data != null){
            return Data;
        } else if(data != null){
            return  data;
        }
        return null;
    }

    public void setNewData(T data){
       Data =  data;
       this.data = data;
    }

//    public HashMap<String, GameTime> getDate_res() {
//        return date_res;
//    }
//
//    public void setDate_res(HashMap<String, GameTime> date_res) {
//        this.date_res = date_res;
//    }

}

